﻿@{
    Layout = null;
}
<div style="overflow: hidden">
    
<ul class="nav nav-pills pull-right">
    @if (Request.IsAuthenticated)
    {
        <li><a href="/statuses/@ViewBag.UserId">@User.Identity.Name</a></li>
        if (ViewBag.IsAdmin)
        {
            <li><a href="/admin/Product/List">Administration</a></li>
        }
        else if(ViewBag.IsShopOwner)
        {
            
            <li><a href="/admin/Product/List">Administration</a></li>
        }
        <li><a href="/customer/setting">Setting</a></li>
        <li><a href="/customer/signoff">Log off</a></li>

        
        
    }
    else
    {
        <li>@Html.ActionLink("Register", "Register", "Customer", routeValues: new { area = "" }, htmlAttributes: new { id = "registerLink" })</li>
        <li>@Html.ActionLink("Log in", "Login", "Customer", routeValues: new { area = "" }, htmlAttributes: new { area = "", id = "loginLink" })</li>
    }
</ul>

</div>